/**
 * 获取屏幕高度
 * @param {number} height 要减去的高度
 * @return {number}
 */
export default function screenHeight(height = 285) {
  const defaultHeight = 880;
  const clientHeight = document.documentElement.clientHeight || document.body.clientHeight;
  if (clientHeight) {
    return clientHeight - height;
  }
  return defaultHeight - height;
}
